package com.data.modules.message.handle.enums;

import lombok.Getter;

import java.util.Objects;

/**
 * 推送状态枚举
 */
@Getter
public enum SendMsgStatusEnum {

//推送状态 0未推送 1推送成功 2推送失败
	WAIT("0"), SUCCESS("1"), FAIL("2");

	private String code;

	private SendMsgStatusEnum(String code) {
		this.code = code;
	}

	public static boolean result(String code){
		return Objects.equals(SUCCESS.code, code);
	}

}